<gm:page title="Register - admin" authenticate="true">

  <input type="button" onclick="getCount()" value="Get Count"/>
  
  Registrants:
  <gm:list data="${app}/register" id="regList" template="registrantsListTemplate" pagesize="1000"/>
  
  <gm:template id="registrantsListTemplate">
    <table class="blue-theme">
      <thead>
        <tr>
          <th>Name</th>
          <th>Email</th>
          <th>&#160;</th>
        </tr>
      </thead>
      <tr repeat="true">
        <td><gm:text ref="atom:title"/></td>
        <td><gm:text ref="gd:email/@address"/></td>
        <td>
  <gm:checkbox ref="gmd:api_gears"/>Gears<br>
  <gm:checkbox ref="gmd:api_ajax"/>AJAX<br>
  <gm:checkbox ref="gmd:api_gadgets"/>Gadgets<br>
  <gm:checkbox ref="gmd:api_maps"/>Maps<br>
  <gm:checkbox ref="gmd:api_calendar"/>Calendar<br>
  <gm:checkbox ref="gmd:api_blogger"/>Blogger<br>
</td>
   <td>
  <gm:checkbox ref="gmd:session_1"/>Session 1<br>
  <gm:checkbox ref="gmd:session_2"/>Session 2<br>
</td>
        <td><gm:editButtons text="true"/></td>
      </tr>
      <tfoot>
        <tr>
          <td colspan="3">&#160;</td>
        </tr>
      </tfoot>
    </table>
  </gm:template>

  <script>
    function getCount() {
      var regList = google.mashups.getObjectById("regList").getData().size();
      alert(regList);
    }
  </script>
</gm:page>

